Micron Document

Resource
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Manual: Resources ↗

A resource is Reticulum's mechanism for reliably transferring an arbitrary amount of data over an established link.

It breaks data into individual packets on the transmitting end and reassembles them in order on the receiving end, while performing integrity checks. It can also automatically compress data.

Contents

Usage

Usage

Resources are very simple to use. RNS only requires a few lines of code to transfer any amount of data:

# Sender
resource = RNS.Resource(data, link, callback=my_callback)
# Receiver
def resource_concluded(resource):
data = resource.data.read()

For a more comprehensive use case, see the Filetransfer example in the manual.

See also

Packet
Link

Reticulum concepts
Resource